const express = require("express");

const app = express();
// 解析JSON类型的请求体
app.use(express.json());

app.use("/login", (req, res) => {
  const body = req.body;
  if (!Object.keys(body).length) {
    res.status(401).errored("页面未找到！");
  }
});

app.listen("3000", () => {
  console.log("~~~~~服务器启动成功");
});
